#define  _CRT_SECURE_NO_WARNINGS 1

#include "heap.h"

void test1()
{
	HP hp;
	HeapInit(&hp);
	HeapPush(&hp, 2);
	HeapPush(&hp, 7);
	HeapPush(&hp, 5);
	HeapPush(&hp, 13);
	HeapPush(&hp, 1);

	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	printf("\n");

	HeapDestroy(&hp);
}

int main()
{
	test1();

	return 0;
}